home *** CD-ROM | disk | FTP | other *** search
/ Family Fun / Family Fun.iso / joke1 / jokes_s / sesame.st < prev    next >
Text File  |  1992-01-07  |  5KB  |  183 lines

  1.  
  2. HORIZONS IN COMPUTER SCIENCE EDUCATIONAL TECHNOLOGY
  3. ===================================================
  4. By Ross Williams 3 June 1988.
  5.  
  6. Recent studies have shown that while undergraduate students are more intelligent
  7. than kindergarten students,  the mentality and attention span of  the two groups
  8. are similar. With this  in mind, we introduce a new  concept in Computer Science
  9. education:
  10.  
  11.  
  12. COMPUTER SCIENCE SESAME STREET
  13. ==============================
  14.  
  15. Narrator:
  16. One of these programs is not like the others,
  17. One of these programs has a bug.
  18. One of these programs is not like the others,
  19. And if you can't tell which one, you're a mug.
  20.  
  21. One of these programs is not like the others,
  22. One of these programs will really teach yer,
  23. One of these programs is not like the others,
  24. Yes, that's not a bug, that's a feature.
  25.  
  26. ----------
  27.  
  28. Voiceover:
  29. c
  30. C
  31. C?
  32. C!
  33. printf!
  34. while ((c=getchar() != EOF) {}
  35. C!
  36.  
  37. ----------
  38.  
  39. Song:
  40. Dum diddle diddle diddle dum de dum dum,
  41. Dum diddle diddle diddle,
  42.  
  43.         1
  44.         2
  45.         3
  46.         4
  47.         5
  48.         6
  49.         7
  50.         8
  51.         9
  52.         A
  53.         B
  54.         C
  55.         D
  56.         E
  57.         F
  58.  
  59. ----------
  60.  
  61. Narrator: Hello Oscar, how are you today?
  62.  
  63. Oscar the Grouch: Go away: I've just found a new garbage collection algorithm.
  64.  
  65. Narrator: Tell me about it Oscar....
  66.  
  67. ----------
  68.  
  69. Kermit: This  is Kermit  the Frog reporting  for Sesame  Street news.  Today, we
  70. interview  Professor  Biskit who  works  on  cookie biosearch.  Hello  Professor
  71. Biskit, what have you got there?
  72.  
  73. Prof: Arcchhh, I am trying to find out iv there is zarch a sing as an infinitely
  74. long  coorkie. Dis  machine vill  produce every  sort of  coorkie possible:  big
  75. cookies, dittle cookies, square cookies, round cookies. The cookies come out dis
  76. hole here.
  77.  
  78. Kermit: You mean if  you get a really long cookie, it will  come out of the hole
  79. like a sausage?
  80.  
  81. Prof: Yaaaass, that's right.  Now I vill set de machine going,  and ve can start
  82. vatching de corkies.
  83.  
  84. GRRRRUNNNCCHHHH CHUGGA CHUGGA CHUGGA CHUGGA...
  85.  
  86. Prof: Aass here comes one,... CLUNK
  87.  
  88. Cookie Monster: Cooooookie! Chomp.
  89.  
  90. Prof: Und another. Dis one eees square: CLUNK.
  91.  
  92. Kermit: Uh professor...
  93.  
  94. Prof: Don't bother me now, I'm vatchin coorkies.
  95.  
  96. Kermit: What if there isn't an infinitely long cookie?
  97.  
  98. Prof: Then  they vill come out  of dis machine  forever - there are  an infinite
  99. number of possible corkies you know.
  100.  
  101. Kermit: And what if the machine starts making an infinitely long cookie?
  102.  
  103. Prof: Thats obvious you frogk, I vill have to vait for it to come out.
  104.  
  105. Kermit: And how long will that take?
  106.  
  107. Prof: Forever.
  108.  
  109. Kermit: So if  there isn't an infinitely  long cookie, you have  to wait forever
  110. and if there is, you have to wait forever  too. How are you going to find out if
  111. there is an infinitely long cookie today?
  112.  
  113. Prof: Don't interrupt. Here comes a triangular one viff purple spots.
  114.  
  115. Cookie monster: CRUNCH. GULP.
  116.  
  117. Prof: My machine!
  118.  
  119. Kermit: Well, it looks as if the  cookie monster has transcended the question of
  120. whether there is an infinitely long cookie  by eating the cookie machine. A good
  121. thing as the computation was UNCOMPUTABLE.
  122.  
  123. ----------
  124.  
  125. Narrator: Hello Big Bird. What's all this mess?
  126.  
  127. Big Bird:  I'm planting a binary  tree. That way, I  can nest in it  and I won't
  128. have to fly South for the winter.
  129.  
  130. Narrator: How long will it take for the tree to grow tall enough?
  131.  
  132. Big Bird: If I add branches randomly it will take me log_2(t)/1.386.
  133.  
  134. Narrator: Tell me why, Big Bird?
  135.  
  136. ...
  137.  
  138. ----------
  139.  
  140. This program has been brought to you by the language C and the number F.
  141.  
  142. This has been a production of the Computer Science Television Workshop.
  143.  
  144. --------------------------------------------------------------------------------
  145.  
  146. COMPUTER SCIENCE YOUNG ONES
  147. ===========================
  148.  
  149. Neil: Ow, WOW heavy! My lentil binary trees are growing exponentially.
  150.  
  151. Vivian: This calls for a subtle combination of mathematics and extreme violence.
  152.  
  153. Rick: Oh you couldn't theorize even if you picked your nose with a silicon chip.
  154.  
  155. Vivian: OK, watch! This is how you dismantle a binary tree in constant time...
  156.  
  157. CRUNCH, CHOP, CRASH...
  158.  
  159. Neil: WOW. Heavy. Look at the mess. Look at all the garbage!
  160.  
  161. Garbage: Now they'll try to clean me  up in constant time, but they've forgotten
  162. about all those cycles caused by curly lentils...
  163.  
  164. Vivian: Oh no we  didn't because I cut all the cycles before  I chopped down the
  165. tree...
  166.  
  167. Rick: You  can't do that in  linear time! What  sort of a snotty  nosed gullible
  168. girlie do you think I am?
  169.  
  170. Vivian: Well I had him fooled!
  171.  
  172. Neil:  No  you  didn't!  I  was  just waiting  for  the  tree  to  spontaneously
  173. re-assemble.
  174.  
  175. .....
  176.  
  177. --
  178. Edited by Brad Templeton.  MAIL, yes MAIL your jokes to watmath!looking!funny .
  179. Attribute the joke's source if at all possible.  I will reply, mailers willing.
  180. Remember: If you POST your joke instead of mailing it, I will not reply.
  181.  
  182.  
  183.